<?php
if(!file_exists(dirname(__FILE__) . "/data/common.inc.php"))
{
    header("Location:install/index.php");
    exit();
}
require_once (dirname(__FILE__) . "/include/common.inc.php");
require_once RSMSINC."/arc.partview.class.php";
require_once(RSMSINC."/memberlogin.class.php");
require_once(dirname(__FILE__)."/member/config.php");
$GLOBALS['_arclistEnv'] = 'index';

global $cfg_ml;

if($cfg_ml && $cfg_ml->IsLogin())
{
	header("Location:/plus/list.php");
	exit();
} else {
	$row = $dsql->GetOne("Select * From `#@__homepageset`");
	$row['templet'] = MfTemplet($row['templet']);
	$pv = new PartView();
	$pv->SetTemplet($cfg_basedir . $cfg_templets_dir . "/" . $row['templet']);
	$pv->Display();
}

?>